{extend name="admin/layout" /}
{block name="main"}
<div class="row">
    <div class="col-md-offset-3 col-md-6">
        <div class="panel">
            <div class="panel-heading">邮箱配置</div>
            <div class="panel-body">
                {if condition="isset($msg)"}<div class="alert alert-danger">{$msg}</div>{/if}
                <form method="post" class="form-horizontal">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">SMTP服务器</label>
                        <div class="col-sm-10">
                            <input type="text" name="email_host" class="form-control"
                                   value="{:config('zz_email_host')}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">端口</label>
                        <div class="col-sm-10">
                            <input type="text" name="email_port" class="form-control"
                                   value="{:config('zz_email_port')}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">邮箱账号</label>
                        <div class="col-sm-10">
                            <input type="text" name="email_user" class="form-control"
                                   value="{:config('zz_email_user')}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">密码</label>
                        <div class="col-sm-10">
                            <input type="text" name="email_pwd" class="form-control"
                                   value="{:config('zz_email_pwd')}">
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
                            <button class="btn btn-success" type="submit">&lt;&lt;&lt;保存&gt;&gt;&gt;</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}
